x86emul: ignore most segment bases for 64-bit mode in is_aligned()
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Dec 2016 10:13:32 +0000 (11:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Dec 2016 10:13:32 +0000 (11:13 +0100)
commit6e616a3cef4d782253787904bf3d641112eafa14
tree1bf334f46beb0f7630608dff6d37f95ca7dbaddd
parent2dc57d2080cbb31b76564aa52fbf4e5743cf80dc
x86emul: ignore most segment bases for 64-bit mode in is_aligned()

ops->read_segment() will report whatever is actually there in the
register, so we need to actively distinguish ES/CS/SS/DS from FS/GS.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c